package com.wang.springframework.context;

import com.wang.springframework.beans.BeansException;
import com.wang.springframework.beans.factory.Aware;

/**
 * @author wangjianhua
 * @Description 实现该接口 便能感知所属的ApplicationContext
 * @date 2021/8/26/026 20:43
 */
public interface ApplicationContextAware extends Aware {

    /**
     * 设置ApplicationContext
     * @param applicationContext applicationContext
     * @throws BeansException 异常
     */
    void setApplicationContext(ApplicationContext applicationContext) throws BeansException;
}
